package surllook

import "goweb/models/murllook"

type UrlLookS struct {
	murllook.UrlLook
}

type CronTaskS struct {
	murllook.CronTask
}

func (u *UrlLookS) CronInfo() []murllook.UrlLook {
	return murllook.GetAllUrlLookByCron()
}

func (u *UrlLookS) AddUrlLookCronS(cid string) int {
	return u.AddUrlLookCronM(cid)
}

func (u *UrlLookS) UpdateUrlLookCronS() int {
	return u.UpdateUrlLookCronM()
}

func GetCronTaskS() interface{} {
	return murllook.GetCronTaskM()
}

func (cts *CronTaskS) AddCronTaskS() int {
	return cts.AddCronTaskM()
}

func (cts *CronTaskS) UpdateUrlLookCronS() int {
	return cts.UpdateUrlLookCronM()
}
